<template>
	<view class="msg-box">
		<view>
			<u-tabs :list="list" :is-scroll="false" :current="current" @change="val=>{current = val}"></u-tabs>
		</view>
		<view>
			<cusDetails :params="params" :custType="custType" v-if="current == 0"/>
			<carDetails :params="params" v-if="current == 1"/>
		</view>		
	</view>
</template>

<script>
	import cusDetails from './components/cusDetails/cusDetails.vue'
	import carDetails from './components/carDetails/index.vue'
	export default{
		components:{
			cusDetails,
			carDetails
		},
		onLoad(option){
			this.params = {
				vin:option.vin,
				custNo:option.custNo,
				isOtherCar:option.isOtherCar				
			}
			this.custType = option.custType
			console.log('custType',option.custType)
		},
		data() {
			return {
				params:{},
				current:0,
				orderId:'',
				custType:'',
				list:[{
					name: '客户详情'
				}, {
					name: '车辆详情'
				}]				
			}
		}
	}
</script>

<style>
</style>
